package com.my.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author summit
 * @since 2020/6/27 8:48
 */
@ConfigurationProperties(prefix = "summit.generator")
@Data
@Component
public class GeneratorProperties {


    private String dburl;

    private String dbdriverName = "oracle.jdbc.driver.OracleDriver";
    private String dbuserName = "test";
    private String dbpwd = "123456";
    private String author = "lantian";

    private String parentPackage = "com.my.test2";

    private String[] tableNames = {"STUDENT"};

    public void setTableNames(String tableNames) {
        this.tableNames = tableNames.split(",");
    }

    private String projectPath = "D:/test2";
}
